<?
class siteController extends iMVC_Controller{

    public function index(){

        $slider=new sliderModel();
        $sRs=$slider->fetchAll();
        $this->assign("slider",$sRs);

        session_start();
        
        $ln=$_SESSION["ln"];
        $site=new siteinfoModel();
        switch($ln){

        case 'zh': 
            $site->findByPk(3);

            break;
        case 'en':
            $site->findByPk(2);

            break;
        case 'it':
            $site->findByPk(1);
            break;
        default :
            $site->findByPk(1);
            break;

        }

        $this->assign("content",$site->content);
        $this->display("regRule.tpl");

    }

}

// vim600:ts=4 st=4 foldmethod=marker foldmarker=<<<,>>>
// vim600:syn=php commentstring=//%s
